package com.dfrz.ch08.task;

import org.junit.Assert;
import org.junit.Test;

/**
 * 作者:maweifeng
 * 日期 2021/4/16 15:49
 * 描述:正则表达式的测试单元
 */
public class Demo01Test {

    @Test
    public void charChinese(){
        String str ="1111";
        Demo01.charChinese(str);
//        Assert.assertEquals(true,  Demo01.charChinese(str));
    }

    @Test
    public void charDouble(){
        String str ="看";
        Demo01.charDouble(str);
    }
    @Test
    public void charSpace(){
        String str =" ";
        Demo01.charSpace(str);
    }
    @Test
    public void charEmail(){
        String str ="123@qq.com";
        Demo01.charEmail(str);
    }
    @Test
    public void charUrl(){
        String str ="http://www";
        Demo01.charUrl(str);
    }
    @Test
    public void charTel(){
        String str ="13536587871";
        Demo01.charTel(str);
    }
    @Test
    public void charPhone(){
        String str ="7638211";
        Demo01.charPhone(str);
    }
    @Test
    public void charPoint(){
        String str ="-0.7638211";
        Demo01.charPoint(str);
    }
    @Test
    public void charPositive(){
        String str ="-7638211";
        Demo01.charPositive(str);
    }
    @Test
    public void charFloating(){
        String str ="0.7638211";
        Demo01.charFloating(str);
    }
    @Test
    public void charQq(){
        String str ="7689782789";
        Demo01.charQq(str);
    }
    @Test
    public void charPostal(){
        String str ="222789";
        Demo01.charPostal(str);
    }
    @Test
    public void charIp(){
        String str ="222.239.212.222";
        Demo01.charIp(str);
    }
    @Test
    public void charId(){
        String str ="352203200211221015";
        Demo01.charId(str);
    }
    @Test
    public void charDay(){
        String str ="1999-9-30";
        Demo01.charDay(str);
    }
    @Test
    public void charZheng(){
        String str ="1999930";
        Demo01.charZheng(str);
    }
    @Test
    public void charFu(){
        String str ="-1999930";
        Demo01.charFu(str);
    }
    @Test
    public void charName(){
        String str ="0809";
        Demo01.charName(str);
    }
}
